<div class="container-fluid" style="padding: 20px 10px 0px 10px">
	<div class="row-fluid">
		<div class="well">
		    <ul class="nav nav-tabs">
		      <li class="active"><b>添加幻灯类别</b></li>
		    </ul>
		    <div id="myTabContent" class="tab-content">
				<div class="tab-pane active in" id="home">
					<form id="formid" action="/index.php/slide/addslide" method="post">
						<p>类别名称：<input type="text" value="<?=$slide['title']?>" placeholder="" style="" name="title" type='text' class="checkname"></p>
						<p>最大个数：<input type="text" value="<?=$slide['max_num']?>" placeholder="" style="" name="max_num" type='text' class=""></p>
						<p>排序字段：<input type="text" value="<?=$slide['sort']?>" placeholder="" style="" name="sort" type='text' class=""></p>
						<input type="hidden" value="1" name="dosubmit" />
						<input type="hidden" value="<?=$slide['slide_id']?>" name="slide" />
					</form>
				</div>
				<div class="btn-toolbar">
				    <button class="btn btn-primary" id="btn-save" style="margin-left:72px"><i class="icon-save"></i> 保存</button>
				  <div class="btn-group">
				  </div>
				</div>
			</div>
		</div>
	</div>
</div>
<script>
$(function(){
	$('#btn-save').click(function(){
		if(!($('.checkname').val())){
			showmsg('类别名称不能为空');
			return false;
		}else{
			setBtn($('#btn-save'));
			$('#formid').submit();
		}
		
	});
})
</script>